//
//  ScoreSelectCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/4/11.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "ScoreSelectCell.h"

@interface ScoreSelectCell()
@property (weak, nonatomic) IBOutlet UILabel *scoreLab;
@property (weak, nonatomic) IBOutlet UISwitch *switchSlider;



@end

@implementation ScoreSelectCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (IBAction)valueChanged:(UISwitch *)sender
{
    if (self.switchBlock) {
        self.switchBlock(sender.on);
    }
}

- (void)setScore:(NSInteger)score
{
    _score = score;
    self.scoreLab.text = [NSString stringWithFormat:@"选择可用积分:%zd",score];
}

@end
